<?php
my_component_load('testing' , false);
my_component_load('paging' , false); 
my_component_load('data_setting', false);
my_component_load('msg_setting' );
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$label = isset( $_GET['label'] ) ? $_GET['label']:  '';
$modulname = "Admin _BN_ Konfigurasi Data _BN_ Label / Message";
 
if($_SERVER['REQUEST_METHOD'] == "POST" ){
	switch($task){
		case   "edit_msg_page" :
			$validatepost = false;//valid_bank($id);
			if($validatepost){
				$errors = message_multi_error($validatepost);
				$content = $errors;
				$content .= form_bank($id);
				generate_my_web($content,"","plain.php");
				exit; 
			}else{
				submit_msg($label); 
				$content =  "Updated";
				generate_my_web($content,"","plain.php");
				exit;
		     }
		break;
	}

}else{
	if($task == "edit_msg"){
		$title=   "Perubahan Data" ;
		facebox_page('index.php?com='.$_GET['com'].'&task=edit_msg_page&label='.$label , $title , 150	); 
	}elseif($task == "edit_msg_page"){
		$content  = form_edit($label);
		generate_my_web($content,"","plain.php");
		exit; 
	}else{ 
		$pagename = "Daftar label";
		load_facebox_script();
		$view = list_text_seting();
	}
 
}
$content = spliter_browser( $view , $pagename ,'index.php?com='.$_GET['com'].'&task=edit_bank');
generate_my_web($content, $modulname );